<?php

if (!defined("IN_OP"))
{
    exit("You can't access this file directly...");
}
if ($curruser['prev_id'] != 0 && SubAccountRight($curruser, 4) != 2)
{
    exit();
}
$gametype = intval(getvar("gametype"));
$conf = new Config();
$del_dat_mode = intval($conf->get("data_del_mode"));
$del_user_mode = intval($conf->get("user_del_mode"));
$say_mode = intval($conf->get("unus_say_mode"));
$masteracc = $conf->get("master_account");
$version = $conf->get("version");
if ($fp != "amount1_3d")
{
    unset($_SESSION['CHK_master_account_OK']);
}
echo title("六合彩系统管理");
echo "<p>";
echo "<table border=0 cellpadding=5 cellspacing=0>";
echo "<tr valign=top><td>";
echo "<table border=0 cellpadding=5 cellspacing=0>";
echo "<tr><td><a href='?op=admin&fp=admin'>系统设定</a><br>";
echo "<tr><td><a href='?op=admin&fp=srate1'>基本赔率设定</a><br>";
if ($curruser['acl'] == 255 && !isset($_SESSION['subaccount']))
{
    echo "<tr><td><a href=\"?op=admin&fp=amountchkpass&gametype={$gametype}\">基本退水设定</a><br>";
}
echo "<tr><td><a href='?op=admin&fp=autorate'>自动赔率设定</a><br>";
//echo "<tr><td><a href='?op=admin&fp=editupuser'>走飞站名设定</a><br>";
echo "<tr><td><a href='?op=admin&fp=modify'>占成变更记录</a><br>";
echo "<tr><td><a href='?op=admin&fp=online'>线上人员</a><br>";
echo "<tr><td><a href='?op=admin&fp=findmember'>会员搜寻</a><br>";
echo "<tr><td><a href='?op=admin&fp=chgpwd'>变更密码</a><br>";
echo "<tr><td><a href='?op=admin&fp=stopmember'>停用闲置会员</a><br>";
echo "<tr><td><a href='?op=admin&fp=bet_backup'>注单明细下载</a><br>";
if ($del_dat_mode == 1)
{
    echo "<tr><td><a href='?op=admin&fp=delbet1'>注单取消</a><br>";
}
if ($say_mode == 1)
{
    echo "<tr><td><a href='?op=admin&fp=unusualbet'>查询异常注单</a><br>";
}
if ($del_user_mode == 1)
{
    echo "<tr><td><a href='?op=admin&fp=delemember'>删除停用资料</a><br>";
}
if ($curruser['account'] == G_SUPERACCOUNT && $curruser['acl'] == 255)
{
    if ($del_dat_mode == 0)
    {
        echo "<tr><td><a href='?op=admin&fp=delbet1'>注单取消</a><br>";
    }
    echo "<tr><td><a href='?op=admin&fp=backup'>SQL备份</a><br>";
    if ($say_mode == 0)
    {
        echo "<tr><td><a href='?op=admin&fp=unusualbet'>查询异常注单</a><br>";
    }
    if ($del_user_mode == 0)
    {
        echo "<tr><td><a href='?op=admin&fp=delemember'>删除停用资料</a><br>";
    }
    echo "<tr><td><a href='?op=admin&fp=dbopt'>资料库最佳化</a><br>";
    echo "<tr><td><a href='?op=admin&fp=dbdel'>资料表清除</a><br>";
    echo "<tr><td><a href='?op=admin&fp=setInitMode&gametype=0'>博奕类别设定</a><br>";
    echo "<tr><td><a href='?op=admin&fp=reCalc_3d&gametype=0'>重新颁奖过帐</a><br>";
    echo "<tr><td><a href='?op=admin&fp=dttest'>日期时间转换</a><br>";
    echo "<tr><td><a href='?op=admin&fp=dbdel_bettotal'>清除BetTotal_XX</a><br>";
    echo "<tr><td><a href='?op=admin&fp=upgrade_3d&gametype={$gametype}'>◎资料库升级◎</a><br>";
}
echo "<tr><td><a href='?op=admin&fp=chkbet&gametype={$gametype}'>查询异常注单</a><br>";
echo "</table>";
echo "<td>";
?>